﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Configuration
Imports Equipment.Core

Public Class Database
    Private Shared _dbContext As EquipmentDataContext = Nothing

    Public Shared ReadOnly Property Instance() As EquipmentDataContext
        Get
            If _dbContext Is Nothing Then
                _dbContext = New EquipmentDataContext(Sys.DbConnectionString)
            End If
            _dbContext = New EquipmentDataContext(Sys.DbConnectionString)
            Return _dbContext
        End Get
    End Property
End Class

